<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加文章-同众网</title>
<link href="../Public/css/header.css" rel="stylesheet" type="text/css" />
<link href="../Public/css/article.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
   var URLALL='__PUBLIC__/ueditor/';
</script>
<script type="text/javascript" src="__PUBLIC__/ueditor/editor_config.js"></script>  
 <script type="text/javascript">
   var UEDITOR_HOME_URL = "";
</script>
<script type="text/javascript" src="__PUBLIC__/ueditor/editor_all.js"></script>  
<link rel="stylesheet" href="__PUBLIC__/ueditor/themes/default/ueditor.css"/>  
<style>
    .myEditor { width:650px;}
</style>
    
</head>

<body>
    <!--头部--><include file="../Public/header" />
<div id="article" class="auto"> 
<div id="mygroup_info" class="left" >
     <!--左侧-->  
     <h3><a href="__APP__/Group/Share_Article?gid={$Group.gid}">{$Group.group_name}</a></h3>
     <div id="userlogo" class="left">
          <a href="__APP__/Group/Share_Article?gid={$Group.gid}">
             <img src="__PUBLIC__/Uploads/GroupLogo/m_{$Group.group_logo}"  height="120" width="120" id="group_mainlogo"/>
          </a>
      </div> 
        
      <div id="infoleft" >
        <div id="setinfo" class="left"> 
            <ul >    
               <li>创始人:<a href="?&uid={$Group.user_id}"><span>{$Group.user_name}</span></a></li>
               <li>时间:<span>342</span></li>
               <li>人数:<span>{$Group.group_num}</span></li>
                <li>职位:<span>{$Group.group_num}</span></li>
            </ul>
        </div>
       
        <div id="articlepublish" >
         <a href="__APP__/Center/Article/article?gid={$Group.gid}" title="向{$Group.group_name}投稿" target="_blank" >
           <span> 投稿 
           </span>
         </a> 
          <a href="">
           <span> 加入</span>
          </a>
       </div>
     </div>
     <div class="clear"></div>

       <div id="intromain">
         <h4>简介:</h4>
         <p id="groupintro">{$Group.group_intro}</p>
         </div>
     
      
      <div class="clear"></div>
       
</div>
<div id="articlemain" class="left">

<div class="clear"></div>
 <form id="form1" name="form1" method="post" action="__APP__/Center/Article/article_insert">
      
      <div  class="formlist">   
     	 <div class="cleft">投稿群:
     	  </div>
     	 <div class="cright">
           <a href="__APP__/Group/Share_Article?gid={$gid}" target="_blank" >{$gname}</a>
     	 </div>
      </div>
      <div class="clear"></div>
      <div  class="formlist">      
           
            <div class="cleft">类型</div>
            <div class="cright">
            <p>
         	 <label>
         	   <input name="type" type="radio"  value="1"  <eq name="group_list['type']" value="create"> checked="checked"</eq> />
          	   原创
        	  </label>
            </p>
            <p>
        	  <label>
        	    <input type="radio" name="type" value="2" id="type2" <eq name="group_list['type']" value="reproduced"> checked="checked"</eq>  />
         	   转载
       	 	  </label>
           <span>
             原链接 <input name="link" class="bn-flat" type="text" id="article_title" value="{$group_list.link}"/>
           </span>
            </p>
          </div>
       
      </div>
         <div  class="formlist"> 
                <div class="cleft">
                  主关键字:
                  </div>
                <div class="cright">
              <volist name="key_list" id="keys" >
                  <span>
                      <input id="cancel_note" class="bn-flat" type="radio" name="keyword_id" value="{$keys.keyword_id}"  tabindex="9">
                          {$keys.key_name}
                   </span>
              </volist> 
                      <p>
                  <!--修改时显示已添加的关键字-->
                 <volist name="editkey_list" id="edits" >
                  <span>
                      <input id="cancel_note" class="bn-flat" type="text" name="key_word[]" value="{$edits.key_name}"  tabindex="9">
                  </span>
                  </volist>    
               </p>  <p> 
                  <span>
                      <input id="cancel_note sortitp" class="bn-flat" type="text" name="key_word[]" value=""  >
                  </span>
                  <span >
                      <input id="cancel_note sortitp" class="bn-flat" type="text" name="key_word[]" value=""  >
                  </span>
                  <span>
                      <input id="cancel_note sortitp" class="bn-flat" type="text" name="key_word[]" value=""  >
                  </span> 
              </p>
              </div>
            
             
      </div>
      <div id="create_article">
        
           <div class="cleft">标题</div>
            <div class="cright">
            <input name="name" class="bn-flat" type="text" id="article_title" value="{$group_list.name}"/>
	       </div>
         <div>
          <div style="font-weight:bolder;">内容 </div> 
          <div>
            <script type="text/plain" id="myEditor" class="myEditor">
            {$group_list.content|htmlspecialchars_decode}
            </script>
                <!--注册百度ueditor-->  
                <script type="text/javascript">
                    var editor_a = new baidu.editor.ui.Editor({  
                          autoFloatEnabled: false,//工具栏自动浮动-》关闭  
                    autoClearinitialContent:false,
                    textarea:'content',//form表单将通过该参数获得表单提交的数据  
                    focus:false
                    });
                    editor_a.render('myEditor');
                </script> 
            <!--百度Ueditor注册完毕-->  
          </div>
         </div>
      </div>
      <div id="addfile"  style="margin:10px;height:50px;">
       <div class="cleft">添加附件:
     	</div>
     	 <div class="cright">
           <a id="upload_file" href="javascript:void(0);" target="_blank" >添加附件</a>
     	 </div>
      </div>
       <div style="margin:10px;">
           
          <p class="row footer">
                <input type="hidden" name="aid" value="{$group_list.aid}"   /><!--1通过,2审核,3存稿,0禁止-->
               <input type="hidden" name="state" value="2"  /><!--1通过,2审核,3存稿,0禁止-->
               <input type="hidden" name="group_id" value="{$gid}" id="group_id" />
               <input type="hidden" name="group_name" value="{$gname}" id="group_name" />
              <span>
                 <input type="submit" name="note_submit" class="bn-flat btn" value="发表" id="publish_note" >
              </span> 
              <span>
                  <input id="cancel_note" class="bn-flat" type="submit" name="cancel_note" value="取消" >
              </span> 
          </p>
       </div>
  </form>
   </div>
    <div class="clear"></div>
</div>
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.upload-1.0.js"></script>
<script type="text/javascript">
// upload_img 为一个按钮, 点击时选择文件上传
$("#upload_file").click(function() {
        // 上传方法
        $.upload({
                // 上传地址
                url: '/admin/upload', 
                // 文件域名字
                fileName: 'filedata', 
                // 其他表单数据
                params: {name: 'pxblog'},
                // 上传完成后, 返回json, text
                dataType: 'json',
                // 上传之前回调,return true表示可继续上传
                onSend: function() {
                        return true;
                },
                // 上传之后回调
                onComplate: function(data) {
                        alert(data);
                }
        });
});
</script>
</body>
</html>
